<template>
  <view class="container">
    <web-view :src="webUrl"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      webUrl: '',
    };
  },
  onLoad(options) {
    console.log('options----->15', options);
    if (options.url) {
      // this.webUrl = decodeURIComponent(options.url);
      this.webUrl = options.url + '&type=userRole';
      console.log('this.webUrl----->18', this.webUrl);
    }
  },
};
</script>

<style>
.container {
  display: flex;
  flex: 1;
}
web-view {
  flex: 1;
}
</style>
